package com.pengtu.gsj.entity.yh;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

/**
 * 
 * 
 * MainTenance
 * 
 * 2017年6月6日 上午11:57:53
 * @author lei
 * @version 1.0.0
 *
 */
@Entity
@Table(name = "T_YH_MAINTENANCE")
public class MainTenance extends IdEntity{

	private static final long serialVersionUID = 1L;
	
	private String projectName;// 项目名称

	private String projectNumber; // 项目编号

	private String roadCode;//路段代码

	private String roadName; // 道路(桥梁)名称

	private String projectPoint; // 项目概括

	private String projectLocation; // 工程位置

	private String projectYear; // 项目年度

	private String projectService; // 维修措施

	private String signOrg; // 建设单位

	private String mainOrg; // 施工单位

	private String designOrg; // 设计单位

	private String supOrg; // 监理单位

	private String district; // 区

	private String subDistrict; // 街道

	private String maintainSource;// 资金来源

	private String buildKind; // 建设性质

	private String principal; // 项目负责人

	private Double projectCost; // 项目计划总投资

	private Double projectApplyCost; // 实际金额

	private Date planBeginDate; // 计划开始时间

	private Date planEndDate; // 计划结束时间

	private Date beginDate; // 实际开始时间

	private Date endDate; // 实际结束时间

	private String remark; // 备注

	private List<Attachment> attachments;


	public MainTenance() {
	}
	
	@Column(name = "projectName")
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@Column(name = "PROJECTNUMBER")
	public String getProjectNumber() {
		return projectNumber;
	}

	public void setProjectNumber(String projectNumber) {
		this.projectNumber = projectNumber;
	}

	@Column(name = "ROADCODE")
	public String getRoadCode() {
		return roadCode;
	}

	public void setRoadCode(String roadCode) {
		this.roadCode = roadCode;
	}

	@Column(name = "ROADNAME")
	public String getRoadName() {
		return roadName;
	}

	public void setRoadName(String roadName) {
		this.roadName = roadName;
	}

	@Column(name = "PROJECTPOINT")
	public String getProjectPoint() {
		return projectPoint;
	}

	public void setProjectPoint(String projectPoint) {
		this.projectPoint = projectPoint;
	}

	@Column(name = "PROJECTLOCATION")
	public String getProjectLocation() {
		return projectLocation;
	}

	public void setProjectLocation(String projectLocation) {
		this.projectLocation = projectLocation;
	}

	@Column(name = "PROJECTYEAR")
	public String getProjectYear() {
		return projectYear;
	}

	public void setProjectYear(String projectYear) {
		this.projectYear = projectYear;
	}

	@Column(name = "PROJECTSERVICE")
	public String getProjectService() {
		return projectService;
	}

	public void setProjectService(String projectService) {
		this.projectService = projectService;
	}

	@Column(name = "SIGNORG")
	public String getSignOrg() {
		return signOrg;
	}

	public void setSignOrg(String signOrg) {
		this.signOrg = signOrg;
	}

	@Column(name = "MAINORG")
	public String getMainOrg() {
		return mainOrg;
	}

	public void setMainOrg(String mainOrg) {
		this.mainOrg = mainOrg;
	}

	@Column(name = "DESIGNORG")
	public String getDesignOrg() {
		return designOrg;
	}

	public void setDesignOrg(String designOrg) {
		this.designOrg = designOrg;
	}

	@Column(name = "SUPORG")
	public String getSupOrg() {
		return supOrg;
	}

	public void setSupOrg(String supOrg) {
		this.supOrg = supOrg;
	}

	@Column(name = "DISTRICT")
	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	@Column(name = "SUBDISTRICT")
	public String getSubDistrict() {
		return subDistrict;
	}

	public void setSubDistrict(String subDistrict) {
		this.subDistrict = subDistrict;
	}

	@Column(name = "MAINTAINSOURCE")
	public String getMaintainSource() {
		return maintainSource;
	}

	public void setMaintainSource(String maintainSource) {
		this.maintainSource = maintainSource;
	}

	@Column(name = "BUILDKIND")
	public String getBuildKind() {
		return buildKind;
	}

	public void setBuildKind(String buildKind) {
		this.buildKind = buildKind;
	}

	@Column(name = "PRINCIPAL")
	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	@Column(name = "PROJECTCOST")
	public Double getProjectCost() {
		return projectCost;
	}

	public void setProjectCost(Double projectCost) {
		this.projectCost = projectCost;
	}

	@Column(name = "PROJECTAPPLYCOST")
	public Double getProjectApplyCost() {
		return projectApplyCost;
	}

	public void setProjectApplyCost(Double projectApplyCost) {
		this.projectApplyCost = projectApplyCost;
	}

	@Column(name = "PLANBEGINDATE")
	public Date getPlanBeginDate() {
		return planBeginDate;
	}

	public void setPlanBeginDate(Date planBeginDate) {
		this.planBeginDate = planBeginDate;
	}

	@Column(name = "PLANENDDATE")
	public Date getPlanEndDate() {
		return planEndDate;
	}

	public void setPlanEndDate(Date planEndDate) {
		this.planEndDate = planEndDate;
	}

	@Column(name = "BEGINDATE")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	@Column(name = "ENDDATE")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}
	
}
